* Yalidy Matos
* The American DREAM, PoP
* What influences most white Americans to support DREAM Act legislation? And what leads a subset of these same individuals to simultaneously support restrictive immigration policies that hurt DREAMers and their families? Data from the 2012 American National Election Studies (ANES) and the 2018 Cooperative Congressional Election Studies (CCES) demonstrates that white Americans use racial resentment and egalitarianism as justifications to support both policies, however, the effects are conditioned on partisanship.

* Note
*The models are consistent after applying weights as well. If you'd like to run model with weights start with these commands, then run models
*2012 ANES: svyset [pweight= weight_full], strata(strata_full) psu(psu_ftf)
*2018 CCES: svyset [pweight= commonpostweight]

* ClEANING 2012 ANES and Creating Scales

* dream act
recode immig_citizen (-9=.) (-8=.) (1=1) (2=3) (3=2), gen(imm_dreamer)
recode imm_dreamer (1=3) (2=2) (3=1)

* police checks
tab immig_checks
recode immig_checks (-9=.) (-8=.) (3=2) (1=3) (2=1), gen(imm_checks)
tab imm_checks

*race
tab dem_raceeth_x
gen race = dem_raceeth_x
recode race (-9=.) (1=1) (2 3 4 5 6 =.)
tab race

*hispanic
gen hisp = dem_hisp
recode hisp (-9=.) (-8=.) (1=.)

* nativity, foreign born, and generation
tab dem_nativity
recode dem_nativity (-9=.) (-8=.) (11=.), gen(nativity)
tab nativity

gen usborn = nativity
recode usborn (1=1) (2 3 4 = 0)
tab usborn

gen foreignborn = nativity
recode foreignborn (4=1) (1 2 3 = 0)
tab foreignborn

tab dem_parents
recode dem_parents (-9=.)(-8=.), gen(nativity_parent)
recode nativity_parent (1=1) (2 3 =0), gen(usborn_parents)
recode nativity_parent (1 2 = 0) (3 =1), gen(foreignborn_parents)
recode nativity_parent (2 = 1) (1 3 =0), gen(usborn_oneparent)
recode nativity_parent (1=0) (2 3 =1), gen(foreignborn_1plusparent)
tab dem_hispgpar
recode dem_hispgpar (-9=.) (-8=.) (-1=.), gen(nativity_grandparents)
tab nativity_grandparents
recode nativity_grandparents (1 2 3 4 = 1) (0=0), gen(foreignborn_gparents)
recode nativity_grandparents (1 2 3 4 = 0) (0=1), gen(usborn_gparents)

* age
gen age = dem_age_r_x
recode age (-2=.)
sum age

* gender
tab gender_respondent_x
gen gender = gender_respondent_x
recode gender (1=0) (2=1)
tab gender
label define gender 0 "Male" 1 "Female"
label values gender gender
tab gender

* age group
gen agegrp = dem_agegrp_iwdate_x
tab agegrp
recode agegrp (-2=.)

* income group
tab incgroup_prepost_x
gen incomegrp = incgroup_prepost_x
recode incomegrp (-9=.) (-8=.)
tab incomegrp

* pid
tab pid_self
recode pid_self (-9=.) (-8=.) (0=.) (1=1) (3=2) (2=3) (5=.), gen(pid_3)
tab pid_3
label define pid3 1 "Democrat" 2 "Independent" 3 "Republican"
label values pid3 pid3
tab pid3

gen pid7 = pid_x
recode pid7 (-2=.)

* ideology
tab libcpre_self
gen ideology = libcpre_self
recode ideology (-9=.) (-8=.) (-2=.)
tab ideology
label define ideology 1 "ext liberal" 2 "liberal" 3 "slightly liberal" 4 "moderate" 5 "slightly conservative" 6 "conservative" 7 " ext conservative"
label values ideology ideology
tab ideology

* edu
tab dem_edugroup_x
gen edugrp = dem_edugroup_x
recode edugrp (-9=.) (-2=.)
tab edugrp
label define edugrp 1 "less than HS" 2 "HS" 3 "some post HS, no BA" 4 "BA" 5 "graduate degree"
label values edugrp edugrp
tab edugrp

* gender
gen gender = gender_respondent_x
tab gender
recode gender (2=1) (1=0) 

* feeling thermometers
tab ftcasi_asian
gen feelingasian = ftcasi_asian
recode feelingasian (-9=.) (-8=.) (-7=.) (-6=.)
tab feelingasian

gen feelinghisp = ftcasi_hisp
tab ftcasi_hisp
recode feelinghisp (-9=.) (-8=.) (-7=.) (-6=.)

gen feelingblack = ftcasi_black
recode feelingblack (-9=.) (-8=.) (-7=.) (-6=.)

gen feelingillegal = ftcasi_illegal
recode feelingillegal (-9=.) (-8=.) (-7=.) (-6=.)

gen feelingwhite = ftcasi_white
recode feelingwhite (-9=.) (-8=.) (-7=.) (-6=.)

tab ftgr_muslims
recode ftgr_muslims (-9=.) (-8=.) (-7=.) (-6=.) (-2=.), gen(feelingmuslim)

* economy
tab econ_ecnow
tab presapp_econ_x
gen econnow = econ_ecnow
recode econnow (-9=.) (-8=.) (1=1) (2=1) (3=2) (4=3) (5=3) 
tab econnow
label define econnow 1 "good" 2 "neither" 3 "bad"
label values econnow econnow
tab econnow

* national economy
tab econ_ecpast
gen natlecon = econ_ecpast
recode natlecon (-9=.) (-8=.)
tab natlecon
label define natlecon 1 "gotten better" 2 "stayed the same" 3 "gotten worse"
tab natlecon

* personal finance
tab finance_finpast
gen personalfin = finance_finpast
recode personalfin (-9=.) (-8=.) (1=1) (3=2) (2=3)
tab personalfin
label define personalfin 1 "better" 2 "same" 3 "worse"
label values personalfin personalfin
tab personalfin

* income 
gen income = incgroup_prepost_x
recode income (-9 -8 =.)

* patriotism
gen patriotflag = patriot_flag
gen patriotlove = patriot_love
gen patriotamer = patriot_amident
recode patriotflag patriotlove patriotamer (-9=.) (-8=.) (-7=.) (-6=.) 
recode patriotflag (1=5) (2=4) (3=3) (4=2) (5=1) 
recode patriotamer (1=5) (2=4) (3=3) (4=2) (5=1)
gen patriotism = patriotlove + patriotflag + patriotamer

* racial resentment
recode resent_workway (-9=.) (-8=.) (-7=.) (-6=.), gen(r_work)
recode resent_slavery (-9=.) (-8=.) (-7=.) (-6=.), gen(r_slavery)
recode resent_deserve (-9=.) (-8=.) (-7=.) (-6=.), gen(r_deserve)
recode resent_try (-9=.) (-8=.) (-7=.) (-6=.), gen(r_try)
recode r_work (1=5) (2=4) (3=3) (4=2) (5=1)
recode r_try (1=5) (2=4) (3=3) (4=2) (5=1)
gen racialresentment = (r_slavery + r_deserve + r_work+ r_try)
gen norm_racialresent = ((racialresentment - 4)/(20-4))

* Anti-Egalitarianism
recode egal_equal (-9=.) (-8=.) (-7=.) (-6=.) , gen(eg_equal)
recode egal_toofar (-9=.) (-8=.) (-7=.) (-6=.) , gen(eg_toofar)
recode egal_bigprob (-9=.) (-8=.) (-7=.) (-6=.) , gen(eg_bigprob)
recode egal_worryless (-9=.) (-8=.) (-7=.) (-6=.) , gen(eg_worryless)
recode egal_notbigprob (-9=.) (-8=.) (-7=.) (-6=.) , gen(eg_notbigprob)
recode egal_fewerprobs (-9=.) (-8=.) (-7=.) (-6=.) , gen(eg_fewerprobs)
recode eg_toofar eg_worryless eg_notbigprob (1=5) (2=4) (3=3) (4=2) (5=1)
gen egalitarianism = (eg_equal + eg_toofar + eg_bigprob + eg_worryless + eg_notbigprob + eg_fewerprobs)
tab egalitarianism
gen norm_egalitarianism = ((egalitarianism - 6)/(30-6))

* moral traditionalism
recode trad_lifestyle (-9=.) (-8=.) (-7=.) (-6=.), gen(moraltrad_lifestyle)
recode trad_adjust (-9=.) (-8=.) (-7=.) (-6=.), gen(moraltrad_adjust)
recode trad_tolerant (-9=.) (-8=.) (-7=.) (-6=.), gen(moraltrad_tolerant)
recode trad_famval (-9=.) (-8=.) (-7=.) (-6=.), gen(moraltrad_famval)
recode moraltrad_lifestyle (1=5) (2=4) (3=3) (4=2) (5=1)
recode moraltrad_famval (1=5) (2=4) (3=3) (4=2) (5=1)
gen moraltrad = (moraltrad_adjust + moraltrad_lifestyle + moraltrad_tolerant + moraltrad_famval)
gen norm_moraltrad = ((moraltrad - 4)/(20-4))

* Authoritarianism
tab auth_ind
tab auth_cur
tab auth_obed
tab auth_consid
recode auth_ind (-9=.) (-8=.) (-7=.) (-6=.) (1=1) (3=2) (2=3), gen(authori_ind)
recode auth_cur (-9=.) (-8=.) (-7=.) (-6=.) (1=1) (3=2) (2=3), gen(authori_cur)
recode auth_obed (-9=.) (-8=.) (-7=.) (-6=.) (1=3) (3=2) (2=1) (4=.), gen(authori_obed)
recode auth_consid (-9=.) (-8=.) (-7=.) (-6=.) (1=1) (3=2) (2=3), gen(authori_consid)
gen authoritarianism = authori_ind + authori_cur + authori_obed + authori_consid
tab authoritarianism
gen norm_authoritarianism = ((authoritarianism - (4))/(12- (4)))
tab norm_authoritarianism

* job threat
recode immigpo_jobs (-9=.)(-8=.) (-7=.) (-6=.) (1=4) (2=3) (3=2) (4=1), gen(imm_jobs)
tab imm_jobs

* latinos in politics
recode racecasi_infhisp (-9=.) (-7=.) (-6=.) (1=3) (2=2) (3=1), gen(politics_hisp)
gen norm_politics_hisp = ((politics_hisp - 1)/(3-1))

* children
gen children = dem2_numchild
recode children (-9=.)  (0=0) (1 2 3 =1)
tab children

* CLEANING 2018 CCES and Creating Scales

* funds
recode CC18_322c (1=1) (2=0), gen(funds)

* DREAM Act
gen dreamact = cc18_322b
recode dreamact (1=1) (2=0)

* Border Wall
gen borderspendingwall = cc18_322a
recode borderspendingwall (1=1) (2=0)

* Racial Resentment
gen resent_work = CC18_422e
gen resent_slavery = CC18_422f
gen resent_try = CC18_422h
gen resent_deserve = CC18_422g
recode  resent_work (1=5) (2=4) (3=3) (4=2) (5=1)
recode resent_try  (1=5) (2=4) (3=3) (4=2) (5=1)
gen racialresent = resent_work + resent_deserve + resent_slavery+ resent_try
tab racialresent
gen norm_racialresent = ((racialresent - (4))/(20- (4)))

* Nat'l Economy
tab CC18_301
gen natlecon = CC18_301
recode natlecon (6=.)
gen norm_natlecon = ((natlecon - 5)/(1-5))

* Lost Job
tab CC18_303_2
gen lostjob = CC18_303_2
tab lostjob
recode lostjob (1=1) (2=0)

* Immigrant generation
recode immstat (1 2 3 4 =.) (5=1), gen(usborn3rdgen)

* PID
recode pid3 (4 5 =.) (1=1) (2=3) (3=2), gen(pid_3)

* Fam Income
tab faminc_new
gen faminc = faminc_new
recode faminc (97=.)
tab faminc_new
gen norm_income = ((faminc_new - 16)/(16))
recode faminc_new (97=.), gen(income)
tab income
drop norm_income
gen norm_income = ((income - 16)/(1-16))

* ideology
tab ideo5
recode ideo5 (6=.)

* Children
gen children = numchildren
recode children (0=0) (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 =1)
tab children

* White advantage
gen whiteadvantage= CC18_422a
gen norm_whiteadvantage= ((whiteadvantage - 5)/(1-5))

* race
recode race (1=1) (2 3 4 5 6 7 8=.)

* hispanic
recode hispanic(1=.) (2=1)

* edu
tab educ
gen norm_edu = ((educ - 1)/(1-6))

* age
tab birthyr

* gender
tab gender

* STATA Commands for Main Text Tables and Figures

* TABLES IN MAIN TEXT
* Table 1 Distribution of DREAM Act Preferences, by Survey
* ANES 2012
tab imm_dreamer

* ANES 2016
tab imm_dream
 
* CCES 2018
tab dreamact if race==1 & usborn3rdgen==1 & hispanic==1

*Table 2 Supporters of the DREAM Act and Punitive Immigration Policies
* ANES 2012
tab imm_checks imm_dreamer,col

* CCES 2018
tab funds if dreamact==1 & race==1 & usborn3rdgen==1 & hispanic==1

* Table 3 Supporters of the DREAM Act and Punitive Immigration Policies, by Party
* ANES 2012
tab pid_3 if imm_checks==3 & imm_dreamer==3

* CCES 2018
tab pid_3 if race==1 & usborn3rdgen==1 & hispanic==1 & dreamact==1 & funds==1

* Table 4 Determinants of Police Checks Among DREAM Act Supporters, by Party Identification (See Table 4A in Online Appendix Section)

* FIGURES IN MAIN TEXT
* Figure 1
* ANES 2012
graph bar norm_imm_dreamer, over(norm_racialresent)
graph bar norm_imm_dreamer, over(norm_egalitarianism)

* Figure 2 (based on Table 2A, Model 2)
#ANES 2012
coefplot table2amodel2, eform drop(_cons) xline(1)

*Figure 3
*ANES 2012
* Support Dream and Support Checks
histogram norm_egalitarianism if imm_dreamer==3 & imm_checks==3
*Support Dream and Oppose Checks
histogram norm_egalitarianism if imm_dreamer==3 & imm_checks==1

*Figure 4
*ANES 2012
* Support Dream and Support Checks
histogram norm_racialresent if imm_dreamer==3 & imm_checks==3
*Support Dream and Oppose Checks
histogram norm_racialresent if imm_dreamer==3 & imm_checks==1

*Figure 5
* CCES2018
coefplot table7amodel2, eform drop(_cons) xline(1) 

*Figure 6
* Support Dream and Support Withholding Funds
histogram norm_racialresent if dreamact==1 & funds==1
*Support Dream and Oppose Withholding Funds
histogram norm_racialresent if dreamact==1 & funds==0

* Online Appendix 

*Table 1A
*ANES 2012
* Model 1
ologit imm_dreamer2 norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_pid_3 norm_age gender

*Model 1 Odds Ratio
ologit imm_dreamer2 norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_pid_3 norm_age gender, or

*Model 2
ologit dreamfavorneither norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_pid_3 norm_age gender

*Model 3
ologit dreamfavoroppose norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_pid_3 norm_age gender

*ANES 2016
*Model 4
logit imm_dream2 norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income partyid_3 norm_age gender if race==1 & hisp==0 & usborn==1 & parentusborn== 1

*Table 2A
*ANES 2012
* Model 1
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_pid_3 norm_age gender

*Model 2
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_pid_3 norm_age gender if imm_dreamer==3

*Model 2 Odds Ratio
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_pid_3 norm_age gender if imm_dreamer==3, or

*Model 2 without PID
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_age gender if imm_dreamer==3

*Model 3
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_pid_3 norm_age gender if imm_dreamer==2

*Model 4
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_pid_3 norm_age gender if imm_dreamer==1

* Table 3A
* Model 1
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_age gender if pid_3==1

* Model 2
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_age gender if pid_3==2

* Model 3
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_age gender if pid_3==3

* Table 4A
# Model 1 Democrats
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_age gender if pid_3==1 & imm_dreamer==3

* Democrats Odds Ratio
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_age gender if pid_3==1 & imm_dreamer==3, or

* Model 2 Independents
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_age gender if pid_3==2 & imm_dreamer==3

* Independents Odds Ratio
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_age gender if pid_3==2 & imm_dreamer==3, or

* Model 3 Republicans
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_age gender if pid_3==3 & imm_dreamer==3

* Republicans Odds Ratio
ologit norm_imm_checks norm_racialresent norm_authoritarianism norm_moraltrad norm_egalitarianism norm_feelingasian norm_feelinghisp norm_feelingblack norm_feelingillegal norm_feelingmuslim  norm_politics_hisp norm_patriotism norm_imm_jobs norm_natlecon children norm_edu norm_income norm_age gender if pid_3==3 & imm_dreamer==3, or

* Table 5A 
* Model 1 Support the DREAM Act and Police checks by PID
sum norm_racialresent if imm_dreamer==3 & imm_checks==3 & pid_3==1
sum norm_racialresent if imm_dreamer==3 & imm_checks==3 & pid_3==2
sum norm_racialresent if imm_dreamer==3 & imm_checks==3 & pid_3==3

* Model 2 Support the DREAM Act and Oppose Police Checks by PID
sum norm_racialresent if imm_dreamer==3 & imm_checks==1 & pid_3==1
sum norm_racialresent if imm_dreamer==3 & imm_checks==1 & pid_3==2
sum norm_racialresent if imm_dreamer==3 & imm_checks==1 & pid_3==3

* Model 3 Oppose the DREAM Act and Support Police Checks
sum norm_racialresent if imm_dreamer==1 & imm_checks==3 & pid_3==1
sum norm_racialresent if imm_dreamer==1 & imm_checks==3 & pid_3==2
sum norm_racialresent if imm_dreamer==1 & imm_checks==3 & pid_3==3

* Model 4 Oppose the DREAM Act and Oppose Police Checks
sum norm_racialresent if imm_dreamer==1 & imm_checks==1 & pid_3==1
sum norm_racialresent if imm_dreamer==1 & imm_checks==1 & pid_3==2
sum norm_racialresent if imm_dreamer==1 & imm_checks==1 & pid_3==3

* TTEST
ttesti #command used

* Table 6A

*Table 7A
*Model 1
logit funds norm_racialresent norm_whiteadvantage lostjob norm_natlecon children norm_edu norm_income norm_pid_3 birthyr gender if race==1 & usborn3rdgen==1 & hispanic==1

*Model 2
logit funds norm_racialresent norm_whiteadvantage lostjob norm_natlecon children norm_edu norm_income norm_pid_3 birthyr gender if race==1 & usborn3rdgen==1 & hispanic==1 & dreamact==1

*Model 2 Odds Ration
logit funds norm_racialresent norm_whiteadvantage lostjob norm_natlecon children norm_edu norm_income norm_pid_3 birthyr gender if race==1 & usborn3rdgen==1 & hispanic==1 & dreamact==1, or

*Model 3
logit funds norm_racialresent norm_whiteadvantage lostjob norm_natlecon children norm_edu norm_income norm_pid_3 birthyr gender if race==1 & usborn3rdgen==1 & hispanic==1 & dreamact==0

* Table 8A
* Model 1
logit funds norm_racialresent norm_whiteadvantage lostjob norm_natlecon children norm_edu norm_income birthyr gender if race==1 & usborn3rdgen==1 & hispanic==1 & dreamact==1 & pid_3==1

* Model 1 Odds Ratio
logit funds norm_racialresent norm_whiteadvantage lostjob norm_natlecon children norm_edu norm_income birthyr gender if race==1 & usborn3rdgen==1 & hispanic==1 & dreamact==1 & pid_3==1, or

* Model 2
logit funds norm_racialresent norm_whiteadvantage lostjob norm_natlecon children norm_edu norm_income birthyr gender if race==1 & usborn3rdgen==1 & hispanic==1 & dreamact==1 & pid_3==2

* Model 2 Odds Ratio
logit funds norm_racialresent norm_whiteadvantage lostjob norm_natlecon children norm_edu norm_income birthyr gender if race==1 & usborn3rdgen==1 & hispanic==1 & dreamact==1 & pid_3==2, or

* Model 3
logit funds norm_racialresent norm_whiteadvantage lostjob norm_natlecon children norm_edu norm_income birthyr gender if race==1 & usborn3rdgen==1 & hispanic==1 & dreamact==1 & pid_3==3

* Model 3 Odds Ratio
logit funds norm_racialresent norm_whiteadvantage lostjob norm_natlecon children norm_edu norm_income birthyr gender if race==1 & usborn3rdgen==1 & hispanic==1 & dreamact==1 & pid_3==3, or
